import Utils.utils as  utils
from django.shortcuts import render
from Utils.utils import Controller

class User(Controller):

    def commonJs(self,requset,st="",act=""):
        import platform
        import os
        try:
            bd = self.get_database_dir()
            con = {
                "systemType":platform.system()
                ,"webRoot":os.getcwd()
                ,"userDir":bd+"/User"
                ,"pubDir":bd+"Public"
            }
        except Exception as e:
            return self.show_json(str(e),False)
        return render(requset,template_name= "Explorer/user/commonJsexplorerindex.js",content_type="application/javascript;charset=utf-8",context=con)
